package cn.s1995.sloth.bizs.entity;

import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import cn.s1995.sloth.bizs.oo.dto.I18nDTO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 消息模板
 *
 * @author Lex
 * @date 2024-01-10 08:11:26
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "消息模板")
@TableName(value = "biz_message_template", autoResultMap = true)
public class MessageTemplate extends BaseEntity {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private Long id;

	/**
	* 类型：1.通知消息 2.邮件 3.短信
	*/
    @Schema(description = "类型：1.通知消息 2.邮件 3.短信")
    private Integer type;

	/**
	 * 状态: 1.启用 0.禁用
	 */
	@Schema(description = "状态: 1.启用 0.禁用")
	private Integer state;

	/**
	* 标题
	*/
    @Schema(description = "标题")
	@TableField(typeHandler = com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    private I18nDTO title;

	/**
	* 内容
	*/
    @Schema(description = "内容")
	@TableField(typeHandler = com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class)
    private I18nDTO content;


}
